import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router"

import Home from "@/views/home/index.vue"
import About from "@/views/about/index.vue"

const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        redirect: "/home"
    },
    {
        path: "/home",
        name: "Home",
        component: Home
    },
    {
        path: "/about",
        name: "About",
        component: About
    },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
